﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace VitCode.ObjectResolutionHelper
{
    [AttributeUsage(AttributeTargets.All)]
    public class OrMemoAttribute : Attribute
    {

        public static readonly OrMemoAttribute Default = new OrMemoAttribute("");

        public OrMemoAttribute(string description)
        {
            DescriptionValue = description;
        }

        public virtual string Description { get { return DescriptionValue; } }

        protected string DescriptionValue { get; set; }


        public override bool IsDefaultAttribute()
        {
            return Default.Equals(this);
        }
    }
}
